const mongoose = require("mongoose");
const { UserType } = require("./type");

// 创建数据集的结构对象
const schema = new mongoose.Schema(UserType);
// 创建模型：用于跟数据库的数据集合一一对应
const UserModel = mongoose.model("user", schema);

module.exports = { UserModel };
